package com.allenkerr.app;

import com.gpsso.idcard.IdCard;
import com.gpsso.idcard.IdCardSoap;
import com.gpsso.idcard.SearchIdCardResponse;

import java.util.List;

/**
 * 身份证信息免费查询WEB服务
 * http://www.gpsso.com/webservice/idcard/idcard.asmx
 * <p>
 * Created by 小柯(Allen Kerr) on 17.5.15 20:06.
 */
public class IdCardApp {

    public static void main(String[] args) {
        IdCard idCard = new IdCard();
        IdCardSoap idCardSoap = idCard.getIdCardSoap();
        SearchIdCardResponse.SearchIdCardResult result = idCardSoap.searchIdCard("451207199303132270");
        List<Object> content = result.getContent();
        for (Object o : content) {
            System.out.println(o);
        }
    }

}
